<?php
	/**
	 * Creates a list of buttons for submitting the current post.
	 *
	 * @param array $args Arguments to pass to the module in the form of an assoc array.
	 */
	function insert_submitBar($args) {
		global $translate;
		echo "<div id=\"submitbar\">\n";		
		// Slashdot.org
		echo "<a href=\"javascript:location.href='http://slashdot.org/bookmark.pl?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)\" class=\"myTips\" title=\"" . $translate->_("Submit this to Slashdot.org") . "\">\n";
		echo "<img src=\"./modules/submitBar/images/slashdot.gif\" alt=\"Slashdot\" border=\"0\" height=\"16\" width=\"16\" /></a>\n";
		// Digg
		echo "<a href=\"javascript:location.href='http://digg.com/submit?phase=2&URL='+encodeURIComponent(location.href)\" class=\"myTips\" title=\"" . $translate->_("Digg this!") . "\">\n";
		echo "<img src=\"./modules/submitBar/images/digg.png\" alt=\"Digg\" border=\"0\" height=\"16\" width=\"16\" /></a>\n";
		// Del.icio.us
		echo "<a href=\"javascript:location.href='http://del.icio.us/post/?v=3&url='+encodeURIComponent(location.href)\" class=\"myTips\" title=\"" . $translate->_("Submit this to Del.icio.us") . "\">\n";
		echo "<img src=\"./modules/submitBar/images/delicious.png\" alt=\"Del.icio.us\" border=\"0\" height=\"16\" width=\"16\" /></a>\n";
		// Reddit
		echo "<a href=\"javascript:location.href='http://reddit.com/submit?url='+encodeURIComponent(location.href)\" class=\"myTips\" title=\"" . $translate->_("Submit this to Reddit") . "\">\n";
		echo "<img src=\"./modules/submitBar/images/reddit.png\" alt=\"Reddit\" border=\"0\" height=\"16\" width=\"16\" /></a>\n";
		// Technorati
		echo "<a href=\"javascript:location.href='http://www.technorati.com/search/'+encodeURIComponent(location.href)\" class=\"myTips\" title=\"" . $translate->_("Who's linking to this post?") . "\">\n";
		echo "<img src=\"./modules/submitBar/images/technorati.png\" alt=\"Technorati\" border=\"0\" height=\"16\" width=\"16\" /></a>\n";
		echo "</div>\n";
	}
?>